<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Css/admin/ui-v1.0.css" rel="stylesheet" type="text/css" media="all">
<script type="text/javascript" src="/js/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/js/jquery/jquery-ui-1.8.10.custom.min.js"></script>
<script type="text/javascript" src="/js/admin/v3.2.js"></script>
<script type="text/javascript">
$(function(){
	$('#btnReset').click(function(){
		$('#frmTopSet').get(0).reset();
	})
	$('#channelname').autocomplete({
				delay: 0,
				source: function( request, response ) {
					var query= 'f='+encodeURI('channelSelect')+'&keywords='+encodeURI(request.term);
					$.ajax({
						type:'get',
						dataType: "json",
						beforeSend : function(xhr){	xhr.setRequestHeader("HTTP_X_XMLHTTP_MODE", "true"); },
						url:location.pathname,
						data: query,
						success: response
					})
				},
				select: function( event, ui ) {
					$('#channelname').val(ui.item.label);
					$('#channelid').val(ui.item.value);
					return false;
				}
			});
	$('#btnTopSetSave').click(function(){
		$.doCmd('TopSetSave',{query:$('#frmBatchTopSet').serialize(),success:function(){
			alert('批量设置成功!')
			window.close()
		}});
	})
	$('#btnClose').click(function(){
		window.close();
	})
})
</script>
<title>设置头条新闻</title>
</head>

<body class="mainContent">
<city_list>批量头条</city_list>
</body>
</html>
